<?php

namespace pmvc\controller;

use pmvc\Controller;
use pmvc\ModelAndView;

class FourOhFourController
	implements Controller {

    public function configure($conf) { }
    
	/**
	 * Called to handle the request
	 * @return ModelAndView the ModelAndView
	 */
    public function handleRequest() {
    	$app = pmvc_get_application();
    	?>
    	<html>
    	    <head>
    	        <title>Page Not Found: <?php print $app->getRequestedUrl(); ?></title>
    	    </head>
	        <body>
	            <h1>The page requested was not found</h1>
	            <p>
	                The page that you have requestd (<?php print $app->getRequestedUrl(); ?>)
	                was not found.  If you feel you have reached this page in error please
	                try your request agian.
	            </p>
	        </body>
    	</html>
    	<?php
    	return FALSE;
    }
	
}

?>
